package com.cj;

import lombok.*;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author cc
 * @date 2025-05-14 09:10
 **/
@Getter
@Setter
public class Book implements InitializingBean, DisposableBean {


    private String name;

    public Book() {
        System.out.println("create book");
    }

    @Override
    public void destroy() throws Exception {
        System.out.println("destory book");
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("init book");
    }
}
